#include <REGX52.H>
#include "Delay.h"

sbit Buzzer=P2^5;
unsigned int i;
//以500HZ频率响xms，如果修改Delay，可以改为其他频率
void Buzzer_Time(unsigned int xms)
{
	for(i=0;i<xms;i++)
	{
		Buzzer=~Buzzer;
		Delay(1);
	}
}


